package com.hhs.storage.service;

import com.hhs.storage.bean.BusinessDispatchOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.service.impl.BusinessStatsService;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-02-07
 */
public interface BusinessDispatchOrderService extends IService<BusinessDispatchOrder> {
    public Map<String, Object> getAll(BusinessDispatchOrder dispatchOrder, InputParam inputParam);

    /**
     * 根据调度的派车数据，获取该数据的其他信息，车辆，上级订单等
       使用的位置  BusinessDispatchOrderServiceImpl  getAll()
                 BusinessStatsService carNumDetail()
     **/
    public BusinessDispatchOrder getOtherInfo(BusinessDispatchOrder temp);
    public Map<String, Object> add(@RequestParam String orderId, @RequestParam String carDataJson);
    public Map<String, Object> dele(@RequestParam String id,String reason);
    public Map<String, Object> changeState(@RequestParam String id, @RequestParam Integer state);
    public Map<String, Object> updateRemark(@RequestParam String id, @RequestParam String remark);

    Map<String, Object> changeCar(String id, String carId,String reason);
    Map<String, Object> detail(String id);

    Map<String, Object> getByOrderId(InputParam inputParam);

    Map<String, Object> satchelEdit(String deleIdStr, MultipartFile[] voucherFilesList, BusinessDispatchOrder dispatchOrder, InputParam inputParam);
}
